<%@page contentType="text/html; charset=UTF-8"%>
<%@page pageEncoding="UTF-8"%>
<%@page import="java.net.*" %>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.*"%>
<%@page import="orest.front.achieve.GetOptionAction"%>
<%@ page import="orest.common.valueobject.*" %>
<%@ page import="orest.common.dao.*" %>
<%@ page import="orest.common.util.* "%>
<%@ page import="orest.common.response.*" %>


<%        
	String path = request.getContextPath();
	response.setHeader("ContentType","text/xml");  
    response.setHeader("Pragma","No-Cache");   
    response.setDateHeader("Expires",0);   
    response.setHeader("Cache-Control","No-Cache");  
         
%>
<%
//request.setCharacterEncoding("gbk");
String province = request.getParameter("province")==null?"":request.getParameter("province");
String expertneededfield = request.getParameter("ExpNeededField")==null?"":request.getParameter("ExpNeededField"); 
String detaileddescription = request.getParameter("DetailedDescription")==null?"":request.getParameter("DetailedDescription");       
  FieldOptionVal fobj =new FieldOptionVal();
     GetOption getOption = new GetOption();


%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- 
<link href="../common/css/style.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
 -->
<%@include file="../common/common_top.jsp"%>
<link href="<%=path%>/common/css/layout.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/common/css/user.css" rel="stylesheet" type="text/css" />
 
 <script language = "javascript" src = "../common/js/pool.js"    type = "text/javascript"></script>
 <script language = "javascript" src = "../common/js/page.js"    type = "text/javascript"></script>
 <script language = "javascript" src = "../common/js/list.js"    type = "text/javascript"></script>
 <script language = "javascript" src = "../common/js/check.js"    type = "text/javascript"></script>
 <script language = "javascript" src = "js/needforexpertsub.js"    type = "text/javascript"></script>
 <script language = "javascript" src = "js/search.js" type = "text/javascript"></script>
<script language = "javascript" src = "js/setcondition.js" type = "text/javascript"></script>

<script type='text/javascript' src="<%=path%>/includes/js/jquery.js"></script>

<script>

var fPath = "http://" + location.host + "/SSTA/expert/";

	//推荐科研专家
    function load_expert_pos2(divid,http){
			$.ajax({
				type:"POST",
				url:http,
				error:function(msg)
				{
					//alert("操作失败，请重试！"+msg);
				},
			    success:function(data)
			    {
			    	var data = eval("("+data+")");
					var html="";
					//alert(data.length);
					for(var i=0;i<data.length&&i<4;i++){
						html+="<li style=\"width:220px;text-align:center;margin:auto;align:center;padding-top:5px;\">";
						html+="<a  target=\"_blank\"  href=\"<%=path%>/expert/info.jsp?expid="+data[i]['expertid']+"&title="+data[i]['expertname']+"\" >";
						
						/*if(data[i]['photopath']==null||data[i]['photopath']=="undefined"){
								html+="<img src=\"<%=path%>/common/images/no_photo.png\" width=\"75px\" height=\"85px;\" />";
						}else{
							if(trim(data[i]['photopath'])==""){
								html+="<img src=\"<%=path%>/common/images/no_photo.png\" width=\"75px\" height=\"85px;\" />";
							}else{
								html+="<img onerror=\"javascript:this.src='<%=path%>/common/images/no_photo.png'\"  src=\"<%=path%>/expert/image/photo/"+trim(data[i]['photopath'])+"\" width=\"75px\" height=\"85px;\" />";
							} 
						}*/
						
						html+=("<img src=\"/SSTA/expert/image/photo/"+data[i]['expertid']+".jpg\" onerror=\"javascript:this.src='<%=path%>/common/images/no_photo.png'\" width=\"75px\" height=\"85px;\" ");
						
						
						html+="</a>"
						
						html+="<div style=\"width:220px;\"><a  target=\"_blank\"  href=\"<%=path%>/expert/info.jsp?expid="+data[i]['expertid']+"&title="+data[i]['expertname']+"\" >"
						
						html+="姓名："+data[i]['expertname']+"</a></div>";
						html+="<div style=\"width:220px;\">专业：";
						html+=data[i]['workspeciality'];
						html+="</div>";
						
						
						html+="</li>";
						
						html+="<div style=\"float:left;width:240px;height:2px;border-bottom:1px dashed #CCCCCC;\"></div>";
					}

					$("#"+divid).html(html);
				}
			});
	}


	$("document").ready(function()
	{
		//按键登录
	    $("#item_180").keydown(function(e){ 
			 var curkey = e.which; 
			 if(curkey == 13){
				doSearch();
	         }
	    });
	    
	    
	    
	    //推荐专家
	    var http = "<%=path%>/front/ExpertFrontServlet?method=getRecommendExpertList&showType=ChannelShow";
		load_expert_pos2("tjzj",http);
	    
	});
</script>


<title>提交专家需求信息-国家安科网</title>
</head>

<body>


<%@include file="../common/toplogin.jsp"%>
<%@include file="../common/topbanner.jsp"%>
<%@include file="../common/topmenu.jsp"%>





<div>

<!--页面主体部分-->
<div id="contentmain" style="backgrounc-color:red;">
    

	 <div id="all_content_left">
    	<%@include file="../common/adleft.jsp"%>
		<div id="border_box" style="padding-bottom:30px;">
		    <div id="ind_title"><font><a href="<%=path%>/expert/search_results.jsp?key=ChannelShow='1'&topicname=推荐专家" class="blue">推荐专家</a></font><span><a href="<%=path%>/expert/search_results.jsp?key=ChannelShow='1'&topicname=推荐专家" class="blue">更多...</a></span></div>
			<ul id="tjzj">
				<li></li>
				<li></li>
				<li></li>
				<li></li>
			</ul>
		</div>
	 </div>

	
	  <form id="searchform" name="searchform" action="<%=path%>/expert/search_results.jsp" method="post" >
		<div id="all_content_right">
		    <div id="topsearchbox">
					<ul>
						<li><img src="<%=path%>/common/images/search/icon.gif" /></li>
						<li><span class="bluetitle">信息搜索</span></li>
						<li>
							<input type="text" style="width:0px;border:0px;" />
							<input type="text" name=item_180 id="item_180" size="18" style="margin-top:4px;"  value="" />
							<input type="hidden" name="topicname" id="topicname" value="" />
	                 　　		<input type="hidden" name="key" id="key" value="" /> 
						</li>
						<li>
							<a href="javascript:doSearch();">
								<img  src="<%=path%>/common/images/search/botton1.gif" style="border:0px;margin-top:2px;"/>
							</a>
						</li>
						<li>
							<a href="<%=path%>/expert/advancedsearch.jsp" target="_self">高级搜索</a>
						</li>
					</ul>
			</div>
		</form>
		
		
		<form id="tijiao" name="tijiao" action="<%=path%>/expert/agent/addneedforexpert.jsp" method="post">	
			<div id="border_box" style="height:650px;">
			    <div id="ind_title"><font>当前位置：首页 > 科研专家 > 帮您找专家</font><span></span></div>
				<div style=" width:90%; height:auto; margin:0 auto; overflow:hidden;">
				<div style="margin-top:5px;">
					<font color="red">请把您想找的专家的详细要求认真填写到下表，我们在找到合适的专家后会根据您留下的联系方式和您联系！(其中*为必填项)</font>
				</div>
				<table width="100%" border="0" cellpadding="0" cellspacing="0">
				  <tr>
					<td width="20%" height="35" align="left"><span class="bluetitle">所需专家从事领域：</span>&nbsp;</td>
					<td width="80%" align="left">
						<input type="text" id="expertneededfield" name="expertneededfield" value="<%=expertneededfield%>" class="inputtext1"/>
					</td>
				  </tr>
				  <tr>
					<td align="left" height="35"><span class="bluetitle">所需专家所在地区：</span>&nbsp;</td>
					<td align="left">
						<%
						   ArrayList al_province = (ArrayList)getOption.getProvinceList();
                           ProvinceVal myValObj = new ProvinceVal();
                           if (province.equals("")){
                               out.print("<select name='province' id='province' selected style='float:left;'><option value=''>请选择</option>");
                           }  
                           else {
                               out.print("<select name='province' id='province' style='float:left;'><option value=''>请选择</option>");
                           }    

                           for(int i = 0;i < al_province.size();i++)
                           {   myValObj = (ProvinceVal)al_province.get(i);
                               if(province.equals(myValObj.getProvinceId()))
                                out.print(" <option value='"+myValObj.getProvinceId()+"' selected>"+myValObj.getProvinceName().replace("维吾尔自治区","").replace("壮族自治区","").replace("回族自治区","").replace("自治区","").replace("黑龙江省","黑龙江")+"</option>");
                               else
                                out.print(" <option value='"+myValObj.getProvinceId()+"'>"+myValObj.getProvinceName().replace("维吾尔自治区","").replace("壮族自治区","").replace("回族自治区","").replace("自治区","").replace("黑龙江省","黑龙江")+"</option>");
                           }
                           out.print("</select>");
                         %>
					</td>
				  </tr>
				  
				  <tr>
					<td align="left" height="35"><span class="bluetitle">需求人所在单位名称：</span>&nbsp;</td>
					<td align="left">
						<input type="text" id="unitname"  name="unitname" class="inputtext1"/>
					</td>
				  </tr>
				  
				  <tr>
					<td align="left" height="35"><span class="bluetitle">需求人所在单位从事领域：</span>&nbsp;</td>
					<td align="left">
						<input type="text" id="unitfield"  name="unitfield" class="inputtext1"/>
					</td>
				  </tr>
				  
				  <tr>
					<td align="left" height="35"><span class="bluetitle">联系人：<font color="red">(*)</font></span>&nbsp;</td>
					<td align="left">
						<input type="text" id="linkman" name="linkman" class="inputtext1"/>
					</td>
				  </tr>
				  
				  <tr>
					<td align="left" height="35"><span class="bluetitle">Email：</span>&nbsp;</td>
					<td align="left">
						<input type="text" id="email" name="email" class="inputtext1"/>
					</td>
				  </tr>
				  
				  <tr>
					<td align="left" height="35"><span class="bluetitle">固定电话/手机：<font color="red">(*)</font></span>&nbsp;</td>
					<td align="left">
						<input type="text" name="tel" id="tel" class="inputtext1"/>
					</td>
				  </tr>
				  
				  <tr>
					<td align="left" height="35"><span class="bluetitle">传真：</span>&nbsp;</td>
					<td align="left">
						<input type="text" size="37" id="fax" name="fax" class="input_text_grey"/>
					</td>
				  </tr>
				  
				  <tr>
					<td align="left" height="35"><span class="bluetitle">通讯地址：</span>&nbsp;</td>
					<td align="left">
						<input type="text" id="addr" name="addr" class="inputtext1"/>
					</td>
				  </tr>
				  
				  <tr>
					<td align="left" height="35"><span class="bluetitle">邮编：</span>&nbsp;</td>
					<td align="left">
						<input type="text" id="zip" name="zip"  class="inputtext1"/>
					</td>
				  </tr>
				  
				  <tr>
					<td align="left" height="35"><span class="bluetitle">详细说明：<font color="red">(*)</font></span>&nbsp;</td>
					<td align="left">
						<textarea id="detaileddescription" name="detaileddescription" cols="60" rows="6" class="textarea_text_grey"><%=detaileddescription%></textarea>
					</td>
				  </tr>
				  
				  
				  
				  <tr>
					<td height="30" style=" border-bottom:1px dashed #CCCCCC;">&nbsp;</td>
					<td style=" border-bottom:1px dashed #CCCCCC;">&nbsp;</td>
				  </tr>
				  <tr>
					<td align="left" colspan="2" align="center" style="text-align:center;">
						<br/>
						
						<a href="javascript:issub();">
							<img src="<%=path%>/common/images/submit_button.jpg" border="0"/> 
						</a>
						
					</td>
				  </tr>
				</table>
				</div>
				<br />
			</div>
		</form>
</div>
<!--页面主体部分 结束-->

</div>

<div><%@include file="../common/bottom.jsp"%></div>
	

</body>
</html>
